package com.seemsea.service.impl.admin;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.seemsea.dao.admin.IdiomDao;
import com.seemsea.entity.admin.idiom.Idiom;
import com.seemsea.service.admin.IdiomService;

@Service
@Transactional(readOnly = false)
public class IdiomServiceImpl implements IdiomService{

	@Autowired
	private IdiomDao idiomDao;
	
	public Idiom get(String code) {
		return idiomDao.get(code);
	}

	public List<Idiom> getIdioms(Idiom idiom){
		return idiomDao.getIdioms(idiom);
	}
	
	public int getIdiomsCount(Idiom idiom){
		return idiomDao.getIdiomsCount(idiom);
	}
}
